<template>
  <div class="header">
    <div class="title">
        <img :src="screenIcon"  />
        <span>编辑大屏</span>
    </div>
    <div class="menu">
        <EditMenu />
        <div class="screenButtons">
            <div class="screenButton">
                <img :src="saveIcon" />
                <span>保存</span>
            </div>
            <div class="screenButton">
                <img :src="exportIcon" />
                <span>导出</span>
            </div>
            <div class="screenButton">
                <img :src="previewIcon" />
                <span>预览</span>
            </div>
        </div>
    </div>
  </div>
  <div class="container">
    <div class="levels">
        <div class="name">
            图层
        </div>
        <div class="actions">
            <img v-for="(actionICon,index) in leftActions" :key="index" :src="actionICon" />
        </div>
        <div class="level">

        </div>
        <div class="bottomActions">
            <img :src="bottomDeleteIcon" />
            <img :src="bottomCopyIcon" />
        </div>
    </div>
    <div class="draw">

    </div>
    <div class="property">
        
    </div>
  </div>
</template>

<script lang="ts" setup>

    import screenIcon from '@/assets/srceenIcon.png';

    import EditMenu from "./editscreen/components/editMenu.vue"
    //菜单图标
    import useMenuImageHooks from '@/hooks/useMenuHooks';
    const { 
        saveIcon,
        exportIcon,
        previewIcon } = useMenuImageHooks();
    import upIcon from '@/assets/editIcon/levelActionIcon/up.png';
    import downIcon from '@/assets/editIcon/levelActionIcon/down.png';
    import togetherIcon from '@/assets/editIcon/levelActionIcon/together.png';
    import splitIcon from '@/assets/editIcon/levelActionIcon/split.png';
    import topIcon from '@/assets/editIcon/levelActionIcon/top.png';
    import bottomIcon from '@/assets/editIcon/levelActionIcon/bottom.png';

    let leftActions = [topIcon,bottomIcon,togetherIcon,splitIcon,upIcon,downIcon];

    import bottomDeleteIcon from '@/assets/editIcon/bottomActionIcon/delete.png';
    import bottomCopyIcon from '@/assets/editIcon/bottomActionIcon/copy.png';

    import { useRoute } from 'vue-router';
    const route = useRoute();
    
</script>

<style scoped>
    .header {
        height: 60px;
        background: #353738;
        display: flex;
        .title{
            width: 200px;
            color: white;
            display: flex;
            flex-direction: row;
            align-items: center;
            img{
                margin: 0 10px;
            }
        }
        .menu{
            width: calc(100% - 200px);
            display: flex;
            justify-content: space-between;
            
            .screenButtons{
                width: 200px;
                display: flex;
                height: 100%;
                .screenButton{
                    width: 60px;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content:center;
                    align-items: center;
                    span{
                        font-size: 12px;
                        color: #d7dde0;
                        height: 16px;
                        line-height: 16px;
                    }
                    &:hover{
                        background: rgb(29, 29, 29);
                        cursor: pointer;
                    }
                }
            }
        }
    }

    .container{
        height: calc( 100% - 60px );
        display: flex;
        .levels{
            height: 100%;
            background: #252626;
            width: 210px;
            display: flex;
            flex-direction: column;
            .name{
                color: #d7dde0;
                height: 40px;
                line-height: 40px;
                text-align: center;
                border-top: 1px solid #151515;
                border-bottom: 1px solid #151515;
                box-sizing: border-box;
            }
            .actions{
                height: 30px;
                display: flex;
                justify-content: space-around;
                align-items: center;
                img{
                    padding: 5px;
                    box-sizing: border-box;
                    cursor: pointer;
                }
                box-sizing: border-box;
                border-bottom: 1px solid #151515;
            }
            .level{
                flex: 1;
            }
            .bottomActions{
                box-sizing: border-box;
                border-top: 1px solid #151515;
                display: flex;
                justify-content: center;
                align-items: center;
                height: 36px;
                img{
                    padding: 4px 5px;
                    margin: 0 10px;
                    cursor: pointer;
                }
            }
        }
        .draw{
            flex:1;
            height: 100%;
            background: #151515;
        }
        .property{
            width: 340px;
            height: 100%;
            background: #454647;
        }
    }
</style>

<style> 
    
    
</style>